package com.eastfair.projectcore.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 消息模板表（短信、邮件、站内信）
 * </p>
 *
 * @author liuxiaobai
 * @since 2021-08-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MsgTemplateSaveDTO", description = "消息模板表（短信、邮件、站内信）")
public class MsgTemplateSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    private Long projectId;
    /**
     * email、sms、notice
     */
    @ApiModelProperty(value = "email、sms、notice")
    @Size(max = 32, message = "email、sms、notice长度不能超过32")
    private String msgType;
    /**
     * 模版类型
     */
    @ApiModelProperty(value = "模版类型")
    @Size(max = 255, message = "模版类型长度不能超过255")
    private String tempType;
    /**
     * 模版标题
     */
    @ApiModelProperty(value = "模版标题")
    @Size(max = 255, message = "模版标题长度不能超过255")
    private String title;
    /**
     * 邮件主题中文
     */
    @ApiModelProperty(value = "邮件主题中文")
    @Size(max = 255, message = "邮件主题中文长度不能超过255")
    private String subject;
    /**
     * 邮件主题英文
     */
    @ApiModelProperty(value = "邮件主题英文")
    @Size(max = 255, message = "邮件主题英文长度不能超过255")
    private String enSubject;
    /**
     * 模板内容中文
     */
    @ApiModelProperty(value = "模板内容中文")
    @Size(max = 65535, message = "模板内容中文长度不能超过65,535")
    private String content;
    /**
     * 模板内容英文
     */
    @ApiModelProperty(value = "模板内容英文")
    @Size(max = 65535, message = "模板内容英文长度不能超过65,535")
    private String enContent;
    /**
     * 邮件webpower模板ID
     */
    @ApiModelProperty(value = "邮件webpower模板ID")
    private Integer mailingId;
    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;
    /**
     * 是否启用
     */
    @ApiModelProperty(value = "是否启用")
    private Integer isEnable;

}
